class CreateOrariDiLavoro < ActiveRecord::Migration
  def self.up
    create_table :orari_di_lavoro do |t|
      t.string   "name"
      t.text     "descrizione"
      t.decimal  "ore_settimanali",   :precision => 9, :scale => 2
      t.integer  "giorni_settimanali"
      t.decimal  "lun",   :precision => 9, :scale => 2
      t.decimal  "mar",   :precision => 9, :scale => 2
      t.decimal  "mer",   :precision => 9, :scale => 2
      t.decimal  "gio",   :precision => 9, :scale => 2
      t.decimal  "ven",   :precision => 9, :scale => 2
      t.decimal  "sab",   :precision => 9, :scale => 2
      t.decimal  "dom",   :precision => 9, :scale => 2
      t.integer  "created_by"
      t.integer  "updated_by"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.datetime "deleted_at"
      t.timestamps
    end
  end

  def self.down
    drop_table :orari_di_lavoro
  end
end
